/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
//TODO CLASS
package gene.core.util;

/**
 *
 * @author vlm
 */
public abstract class Camera {


   protected short x_y_w_h[] = {0,0,0,0};
   protected boolean active = false;
   
   public Camera(int x, int y, int w,int h,int limitX,int limitY){
     this.x_y_w_h[0] += x;
     this.x_y_w_h[1] += y;
     this.x_y_w_h[2] += w;
     this.x_y_w_h[3] += h;
   
   }
   
   public abstract boolean Collids();

   public boolean active(){
     return active;
   }
   
   public void move(int incrementX,int incrementY){
     this.x_y_w_h[0]+=incrementX;
     this.x_y_w_h[1]+=incrementY;
   }

   public void setX(int x){
       this.x_y_w_h[0] =(short)x;
   }

   public void setY(int y){
       this.x_y_w_h[1] =(short)y;
   }

   public void setH(int h){
       this.x_y_w_h[2] =(short)h;
   }

   public void setW(int w){
       this.x_y_w_h[3] =(short)w;
   }

   public int getX(){
       return this.x_y_w_h[0];
   }

   public int getY(){
       return this.x_y_w_h[1];
   }

   public int getW(){
       return this.x_y_w_h[2];
   }

   public int getH(){
       return this.x_y_w_h[3];
   }

}
